package com.dayuanit.mall.bank.payenum;

import com.dayuanit.mall.bank.exception.MallBusException;

public enum NotifyStatusEnum {
	未通知(0), 通知中(1), 已通知(2);
	
	private int status;
	
	private NotifyStatusEnum(int status) {
		this.status = status;
	}

	public int getStatus() {
		return status;
	}
	
	public NotifyStatusEnum getPayStatus(int status) {
			
		for (NotifyStatusEnum ps : NotifyStatusEnum.values()) {
			if (ps.getStatus() == status) {
				return ps;
			}
		}
		
		throw new MallBusException("无效的通知码");
	}
	
}
